package com.cq.hd.order.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.order.api.TbOrderUnverifiedRecordApi;
import com.cq.hd.order.service.TbOrderUnverifiedRecordService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Much
 * @since 2024/09/30 22:02
 */
@RestController
public class TbOrderUnverifiedRecordController implements TbOrderUnverifiedRecordApi {

    @Resource
    private TbOrderUnverifiedRecordService orderUnverifiedRecordService;

    @Override
    public Result<Void> scanPendingRecords() {
        orderUnverifiedRecordService.scanPendingRecords();
        return ResultGenerator.success();
    }

}
